﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Gollie.Controls
{
	public partial class ShoppingBasketTiny : AuthenticationRequiredCustomerBaseUserControl
	{
		protected void Page_Load(object sender, EventArgs e)
		{

		}

		protected override void PreLoadHandler(object sender, EventArgs e)
		{
		}

		protected override void Render(HtmlTextWriter writer)
		{
			Show();
			base.Render(writer);

		}

		private void Show()
		{
			if (this.CheckPrivileges() && this.OrderBasketData.Count > 0)
			{
				this.Panel1.Visible = true;
				this.lblShoppingBasketItems.Text = this.OrderBasketData.Count.ToString();
			}
			else
			{
				this.Panel1.Visible = false;
			}

		}
	}
}